import request from '@/utils/request'

// 查询题型列表
export function listTkType(query) {
  return request({
    url: '/tkType/tkType/list',
    method: 'get',
    params: query
  })
}

// 查询题型详细
export function getTkType(tkTypeId) {
  return request({
    url: '/tkType/tkType/' + tkTypeId,
    method: 'get'
  })
}

// 新增题型
export function addTkType(data) {
  return request({
    url: '/tkType/tkType',
    method: 'post',
    data: data
  })
}

// 修改题型
export function updateTkType(data) {
  return request({
    url: '/tkType/tkType',
    method: 'put',
    data: data
  })
}

// 删除题型
export function delTkType(tkTypeId) {
  return request({
    url: '/tkType/tkType/' + tkTypeId,
    method: 'delete'
  })
}

// 导出题型
export function exportTkType(query) {
  return request({
    url: '/tkType/tkType/export',
    method: 'get',
    params: query
  })
}